<template>
    <div class="main">
        <div class="res_nav" @click="goDetail('gird')">
            <img class="nav_img" src="@/assets/Images/AppIcon/icon_list_urgency.png" alt="">
            <div class="nav_text">网格化管理</div>
        </div>
        <div class="res_nav" @click="goDetail('department')">
            <img class="nav_img" src="@/assets/Images/AppIcon/icon_list_urgency.png" alt="">
            <div class="nav_text">部门安全责任制</div>
        </div>
        <div class="res_nav" @click="goDetail('post')">
            <img class="nav_img" src="@/assets/Images/AppIcon/icon_list_urgency.png" alt="">
            <div class="nav_text">岗位安全责任制</div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {}
        },
        created() {
        },
        methods: {
            goDetail(type) {
                console.log('type', type)
                // 网格
                if(type === 'gird') {
                    this.$router.push('/ResponsibilityManager/GridManage')
                    return
                }
                // 部门
                if(type === 'department') {
                    this.$router.push('/ResponsibilityManager/DepartmentBlame')
                    return
                }
                // 岗位
                else {
                    this.$router.push('/ResponsibilityManager/PostBlame')
                    return
                }
            }
        },
    }
</script>

<style lang="less" scoped>
    .main {
        padding: 10px;
    }

    .res_nav {
        padding: 10px;
        display: flex;
        align-items: center;
        height: 50px;
        background-color: #fff;
        border-radius: 5px;
        margin-bottom: 10px;

        .nav_img {
            width: 30px;
            height: 30px;
            margin-right: 10px;
        }
        .nav_text{}
    }
</style>
